package javacode.chapter04;

public class Example4_11 {
    public static void main(String[] args) {
        // 计算5的阶乘
        int total = 1;
        int i = 5;
        while (i >= 1) {
            total *= i;
            i--;
        }
        System.out.println("5的阶乘是：" + total);
    }
}
